
@echo off
setlocal enabledelayedexpansion

set "folderPath=%~dp0assets"

for /r "%folderPath%" %%F in (*.png) do (
	REM 显示当前正在处理的文件路径
	echo %%F
	pngquant -f --ext .png --quality 0-100 "%%F"
)

echo "pngquant success"
REM 暂停以查看结果
pause